Integers Modulo Prime Finite Field

Finite fields of prime order can be constructed very simply using Zp with addition and multiplication modulo p where p is prime.

Theorem

The set Zn for n2 equipped with addition and multiplication modulo n (that is, Z/nZ) is a field if and only if n is prime.

Proof

We will take it as given that Zp is a commutative ring with with identity, although this is routine to prove.

This is a corollary of every finite integral domain is a field, and the proof of that fact is rather elementary and can be substituted directly here without the use of any advanced techniques. That means, we must prove that Zn is an integral domain if and only if n is prime.

If n is composite then clearly n=ab for some a,b±1,±n and then ab0(modn) gives a pair of non-zero zero divisors.

If n is prime then ab=0(modn) would imply that nab which means that na or nb from the definition of prime elements in rings, of which prime numbers are.


Invertibility of non-zero elements can also be taken as a corollary of the Bezout identity. Similarly we can prove this by proving that pZ is a maximal ideal of Z, a fact that follows directly from the lack of divisors. That is, mZnZ if and only if nm, and the only divisors of prime numbers are 1 (which yields the whole ring) and the prime itself (which yields the same ideal).